home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #9 / K-CD-9-2002.ISO / JASC After Shot / af100evp.exe / Data1.cab / single.xsl28 < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-11  |  6.1 KB  |  150 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  5.     <xsl:template match="/">
  6.         <HTML>
  7.             <xsl:apply-templates/>
  8.         </HTML>
  9.     </xsl:template>
  10.     <xsl:template match="photos">
  11.         <xsl:apply-templates/>
  12.     </xsl:template>
  13.     <xsl:template match="album">
  14.         <xsl:apply-templates select="imagelist"/>
  15.     </xsl:template>
  16.     <xsl:template match="imagelist">
  17.         <xsl:apply-templates select="imageinfo"/>
  18.     </xsl:template>
  19.     <xsl:template match="imageinfo">
  20.         <xsl:element name="ixfile">
  21.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  22. <head>
  23.         
  24.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  25.         <meta name="copyright" content="Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. All rights reserved."/>
  26.         
  27.     </head>
  28.         
  29. <body bgcolor="#FFFFFF"  text="#336633" background="textures/bg2.gif">
  30.  
  31. <table border="0" align="center" background=""><tr><td>
  32. <table border="0" cellspacing="0" cellpadding="0" align="center">
  33. <tr><td><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
  34.                         <tr>
  35.                             <td background="borders/tleft2.gif">
  36.                                 <br kludge=""/></td>
  37.                             <td height="20" background="borders/top2.gif">
  38.                                 <br kludge=""/></td>
  39.                             <td background="borders/tright2.gif">
  40.                                 <br kludge=""/></td>
  41.                         </tr>
  42.                         <tr>
  43.                             <td width="20" background="borders/left2.gif">
  44.                                 <br kludge=""/></td>
  45.                             <td><table width="100%"><tr><td><div align="center"><IMG border="1" vspace="20" hspace="20"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  46.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  47.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG><br kludge=""/>
  48.  
  49. <table border="0" cellspacing="0" cellpadding="0" align="center" width="350" height="75">
  50. <tr><td valign="top"><table width="350" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff">
  51.                         
  52.                         <tr>
  53.                             
  54.                             <td width="75" valign="top"><br kludge=""/><div align="left"><xsl:apply-templates select="previous"/></div></td>
  55.                             <td width="200" valign="top"><div align="center"><table width="200" border="0" cellspacing="0" cellpadding="0">
  56.                 <tr> 
  57.                   <td valign="top" width="21"><xsl:choose>
  58.                                                             <xsl:when test="audio_info/@fname[. != '']">
  59.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  60.                                                             </xsl:when>
  61.                                                             <xsl:otherwise>
  62.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  63.                                                             </xsl:otherwise>
  64.                                                         </xsl:choose></td>
  65.                   <td valign="top">
  66.                     <div align="center"><font face="Arial, Helvetica, sans-serif" size="4" ><b><xsl:value-of select="title"/></b></font></div></td>
  67.                   <td width="21"><xsl:choose>
  68.                                                     <xsl:when test="movie_info/@fname[. != '']">
  69.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  70.                                                     </xsl:when>
  71.                                                     <xsl:otherwise>
  72.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  73.                                                     </xsl:otherwise>
  74.                                                 </xsl:choose></td>
  75.                 </tr>
  76.                 <tr> 
  77.                   <td colspan="3"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2" ><xsl:apply-templates select="description">
  78.                                             <!-- recursively apply this template to them -->
  79.                                             <xsl:template>
  80.                                                 <xsl:copy>
  81.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  82.                                                 </xsl:copy>
  83.                                             </xsl:template>
  84.                                         </xsl:apply-templates></font></div>
  85.                   </td>
  86.                 </tr>
  87.               </table></div></td>
  88.                             <td width="75" valign="top"><br kludge=""/><div align="right"><xsl:apply-templates select="next"/></div></td>
  89.                             
  90.                         </tr>
  91.                         
  92.                     </table></td></tr>
  93. </table></div></td></tr></table></td>
  94.                             <td width="20" valign="top" background="borders/right2.gif">
  95.                             <br kludge=""/></td>
  96.                         </tr>
  97.  
  98.                         <tr>
  99.                             <td background="borders/bleft2.gif">
  100.                                 <br kludge=""/></td>
  101.                             <td height="20" background="borders/bottom2.gif">
  102.                                 <br kludge=""/></td>
  103.                             <td background="borders/bright2.gif">
  104.                                 <br kludge=""/></td>
  105.                         </tr>
  106.                     </table></td></tr>
  107. </table></td></tr></table>
  108.  
  109.  
  110. </body>
  111.         </xsl:element>
  112.     </xsl:template>
  113.     <xsl:template match="audio_info">
  114.         <xsl:if match="audio_info[@fname != '']">
  115.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  116.                 <img border="0" src="graphics/sound.gif"/></A>
  117.         </xsl:if>
  118.     </xsl:template>
  119.     <xsl:template match="movie_info">
  120.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  121.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  122.     </xsl:template>
  123.     <xsl:template match="previous">
  124.         <xsl:value-of/>
  125.         <xsl:choose>
  126.             <xsl:when match="previous[@fname != '']">
  127.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  128.                     <img src="buttons/back3.gif" width="54" height="19" border="0"/></A>
  129.             </xsl:when>
  130.             <xsl:otherwise>
  131.                 <img src="buttons/back3.gif" width="54" height="19" border="0"/>
  132.                 
  133.             </xsl:otherwise>
  134.         </xsl:choose>
  135.     </xsl:template>
  136.     <xsl:template match="next">
  137.         <xsl:value-of/>
  138.         <xsl:choose>
  139.             <xsl:when match="next[@fname != '']">
  140.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  141.                     <img src="buttons/forward3.gif" width="54" height="19" border="0"/></A>
  142.             </xsl:when>
  143.             <xsl:otherwise>
  144.                 <img src="buttons/forward3.gif" width="54" height="19" border="0"/>
  145.             </xsl:otherwise>
  146.         </xsl:choose>
  147.     </xsl:template>
  148. </xsl:stylesheet>
  149.  
  150.